<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
  <script>
    window.onload = function (){
      $.get("showFile",{},function (data) {
        var tb=$("#tb");
        var arr = data;
        for(i =0;i<arr.length;i++){
          var file = arr[i];
          var tr = $("<tr><td>"+file.fileName+"</td><td><img src='"+file.filePath+"' width='100px'/> </td>" +
                  "<td>" +
                  "<a href='download?path="+file.filePath+"'>下载</a>" +
                  "</td></tr>)");
          tb.append(tr);
        }
      },"json");
    };
  </script>
</head>
<body>
  <table border="1" cellspacing="0" width="300" align="center">
    <tr>
      <th>编号</th>
      <th>文件名</th>
      <th>操作按钮</th>
    </tr>
    <tbody id="tb"></tbody>
  </table>
</body>
</html>